package org.xiaom.butler.dao.base;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;

import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;

public interface IBaseDao<T, ID extends Serializable>{
	public T get(ID id) ;
	public T save(T bean);
	public T update(T bean);
	public void delete(ID id);
	public List<T> getList(String hql);
	public List<T> getPage(String hql,int page,int size);
	public void execute(final String cmdString,final String[] params);
	public Class<T> getEntityClass();
}
